﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace project
{
    public partial class Home : Form
    {
        public Home()
        {
            InitializeComponent();
        }

        private void 供商信息录入ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            GarageAdd form4 = new GarageAdd();
            form4.ShowDialog();
        }

        private void 供商信息维护ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            SupplierManage form3 = new SupplierManage();
            form3.ShowDialog();
        }

        private void 供商信息浏览ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            EmployeeAdd form5 = new EmployeeAdd();
            form5.ShowDialog();
        }

        private void 客户信息录入ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            CustomerAdd form7 = new CustomerAdd();
            form7.ShowDialog();
        }

        private void 客户信息维护ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            CustomerUpdate form8 = new CustomerUpdate();
            form8.ShowDialog();
        }

        private void 客户信息浏览ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            CustomerSelect form9 = new CustomerSelect();
            form9.ShowDialog();
        }


        private void Form2_FormClosing(object sender, FormClosingEventArgs e)
        {

            //彻底关闭程序
            System.Environment.Exit(0);
        }

        private void ToolStripMenuItemClose_Click(object sender, EventArgs e)
        {

            //彻底关闭程序
            System.Environment.Exit(0);
        }

        private void TooStripMenuItemSelectEmployee_Click(object sender, EventArgs e)
        {
            EmployeeSelect employeeSelect = new EmployeeSelect();
            employeeSelect.ShowDialog();
        }

        private void Home_Load(object sender, EventArgs e)
        {

        }

        private void ToolStripMenuItemUpdateEmployee_Click(object sender, EventArgs e)
        {
            EmployeeUpdate employeeUpdate = new EmployeeUpdate();
            employeeUpdate.ShowDialog();
        }

        private void ToolStripMenuItemAddEmployee_Click(object sender, EventArgs e)
        {
            EmployeeAdd employeeAdd = new EmployeeAdd();
            employeeAdd.ShowDialog();
        }

        private void ToolStripMenuItemGarageAdd_Click(object sender, EventArgs e)
        {
            GarageAdd garageAdd = new GarageAdd();
            garageAdd.ShowDialog();
        }

        private void ToolStripMenuItemGarage_Click(object sender, EventArgs e)
        {
            GarageManage garageManage = new GarageManage();
            garageManage.ShowDialog();
        }

        private void ToolStripMenuItemSupplierManage_Click(object sender, EventArgs e)
        {
            SupplierManage supplierManage = new SupplierManage();
            supplierManage.ShowDialog();
        }
    }
}
